package com.grts.mall.pojo.vo;

import java.math.BigDecimal;

public class SerachCondtion {
	private String q;
	private String orderByExp;
	private BigDecimal priceLow;
	protected BigDecimal priceHigh;
	private Integer page;
	private Integer limit;

	public Integer getSkip() {
		return this.page * this.limit - this.limit;
	}

	public Integer getTake() {
		return this.limit;
	}

	public String getQ() {
		return q;
	}

	public void setQ(String q) {
		this.q = q;
	}

	public String getOrderByExp() {
		return orderByExp;
	}

	public void setOrderByExp(String orderByExp) {
		this.orderByExp = orderByExp;
	}

	public BigDecimal getPriceLow() {
		return priceLow;
	}

	public void setPriceLow(BigDecimal priceLow) {
		this.priceLow = priceLow;
	}

	public BigDecimal getPriceHigh() {
		return priceHigh;
	}

	public void setPriceHigh(BigDecimal priceHigh) {
		this.priceHigh = priceHigh;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public SerachCondtion(String q, String orderByExp, BigDecimal priceLow, BigDecimal priceHigh, Integer page,
			Integer limit) {
		super();
		this.q = q;
		this.orderByExp = orderByExp;
		this.priceLow = priceLow;
		this.priceHigh = priceHigh;
		this.page = page;
		this.limit = limit;
	}

	public SerachCondtion() {
	}
}
